home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
PVDRIVER
/
WLBPS.ZIP
/
WLBPS.SPR
< prev
next >
Wrap
Text File
|
1993-01-23
|
6KB
|
182 lines
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ 01/23/93 WLBPS.SPR 20:49:20 ║
* ║ ║
* ╟─────────────────────────────────────────────────────────╢
* ║ ║
* ║ Michael L. Brachman, Ph.D. ║
* ║ ║
* ║ Copyright (c) 1993 Micro Endeavors, Inc. ║
* ║ 3150 Township Line Road ║
* ║ Drexel Hill, PA 19026 ║
* ║ ║
* ║ Description: ║
* ║ This program was automatically generated by GENSCRN. ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
#REGION 0
REGIONAL m.currarea, m.talkstat, m.compstat
IF SET("TALK") = "ON"
SET TALK OFF
m.talkstat = "ON"
ELSE
m.talkstat = "OFF"
ENDIF
m.compstat = SET("COMPATIBLE")
SET COMPATIBLE FOXPLUS
m.rborder = SET("READBORDER")
SET READBORDER ON
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ Windows Window definitions ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
IF NOT WEXIST("ps1") ;
OR UPPER(WTITLE("PS1")) == "PS1.PJX" ;
OR UPPER(WTITLE("PS1")) == "PS1.SCX" ;
OR UPPER(WTITLE("PS1")) == "PS1.MNX" ;
OR UPPER(WTITLE("PS1")) == "PS1.PRG" ;
OR UPPER(WTITLE("PS1")) == "PS1.FRX" ;
OR UPPER(WTITLE("PS1")) == "PS1.QPR"
DEFINE WINDOW ps1 ;
AT 2.667, 6.250 ;
SIZE 11.231,82.333 ;
TITLE "Printer Selection" ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
FLOAT ;
CLOSE ;
NOMINIMIZE ;
DOUBLE ;
COLOR RGB(,,,255,255,255)
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ WLBPS/Windows Screen Layout ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
IF WVISIBLE("ps1")
ACTIVATE WINDOW ps1 SAME
ELSE
ACTIVATE WINDOW ps1 NOSHOW
ENDIF
@ 1.231,2.000 TO 9.616,64.167 ;
PEN 1, 8
@ 0.769,3.167 SAY " Printer " ;
FONT "MS Sans Serif", 8 ;
STYLE "B"
@ 2.231,4.000 GET l_rbprint ;
PICTURE "@*RVN \<Default Printer;Specific \<Printer" ;
SIZE 1.308,19.000,2.000 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "BT" ;
VALID Vrbprint()
@ 3.769,7.000 SAY l_pstring ;
SIZE 1.000,54.167 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
COLOR RGB(,,,255,255,255)
@ 1.231,66.000 GET l_praction ;
PICTURE "@*VT \!\<OK;\?\<Cancel" ;
SIZE 1.769,14.167,0.308 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
VALID Vpraction()
@ 5.538,72.000 GET l_iv1 ;
PICTURE "@*IHN " ;
SIZE 1.231,2.167,0.667 ;
DEFAULT 0 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
WHEN _qcq18mohj()
@ 7.154,7.000 GET l_ppprint ;
PICTURE "@^" ;
FROM l_pplist ;
SIZE 1.538,56.167 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
WHEN Vppprint()
@ 8.308,72.000 GET l_iv2 ;
PICTURE "@*IHN " ;
SIZE 1.231,2.667,0.667 ;
DEFAULT 0 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
WHEN _qcq18morx()
IF NOT WVISIBLE("ps1")
ACTIVATE WINDOW ps1
ENDIF
READ CYCLE
RELEASE WINDOW ps1
#REGION 0
SET READBORDER &rborder
IF m.talkstat = "ON"
SET TALK ON
ENDIF
IF m.compstat = "ON"
SET COMPATIBLE ON
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QCQ18MOHJ l_iv1 WHEN ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Platform: Windows ║
* ║ From Screen: WLBPS, Record Number: 7 ║
* ║ Variable: l_iv1 ║
* ║ Called By: WHEN Clause ║
* ║ Snippet Number: 1 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qcq18mohj && l_iv1 WHEN
#REGION 1
IF l_rbprint = 2
_curobj = OBJNUM(l_rbprint)+1
ELSE
_curobj = OBJNUM(l_rbprint)
ENDIF
RETURN .F.
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QCQ18MORX l_iv2 WHEN ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Platform: Windows ║
* ║ From Screen: WLBPS, Record Number: 9 ║
* ║ Variable: l_iv2 ║
* ║ Called By: WHEN Clause ║
* ║ Snippet Number: 2 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qcq18morx && l_iv2 WHEN
#REGION 1
_curobj = OBJNUM(l_praction) + 1
RETURN .F.